home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / diffs / make-3.71 / default.c < prev    next >
Encoding:
Text File  |  1994-08-05  |  1.9 KB  |  83 lines

  1. *** orig/make-3.71/default.c    Thu Jul 21 01:29:54 1994
  2. --- src/make-3.71/default.c    Thu Jul 21 01:32:38 1994
  3. ***************
  4. *** 23,28 ****
  5. --- 23,34 ----
  6.   #include "commands.h"
  7.   #include "variable.h"
  8.   
  9. + /* Define GCC_IS_NATIVE if gcc is the native development environment
  10. +    on your system (gcc/bison/flex vs cc/yacc/lex) */
  11. + #ifdef __MSDOS__
  12. + #define GCC_IS_NATIVE
  13. + #endif
  14.   
  15.   /* This is the default list of suffixes for suffix rules.
  16.      `.s' must come last, so that a `.o' file will be made from
  17. ***************
  18. *** 138,144 ****
  19. --- 144,154 ----
  20.       "@$(RM) $*.c\n $(LEX.l) $< > $*.c\n$(LINT.c) -i $*.c -o $@\n $(RM) $*.c",
  21.   
  22.       ".y.c",
  23. + #ifdef __MSDOS__
  24. +     "$(YACC.y) $< \n mv -f y_tab.c $@",
  25. + #else
  26.       "$(YACC.y) $< \n mv -f y.tab.c $@",
  27. + #endif
  28.       ".l.c",
  29.       "@$(RM) $@ \n $(LEX.l) $< > $@",
  30.   
  31. ***************
  32. *** 203,210 ****
  33. --- 213,225 ----
  34.       "ARFLAGS", "rfv",
  35.   #endif
  36.       "AS", "as",
  37. + #ifdef GCC_IS_NATIVE
  38. +     "CC", "gcc",
  39. +     "CXX", "gcc",
  40. + #else
  41.       "CC", "cc",
  42.       "CXX", "g++",
  43. + #endif
  44.   
  45.       /* This expands to $(CO) $(COFLAGS) $< $@ if $@ does not exist,
  46.          and to the empty string if $@ does exist.  */
  47. ***************
  48. *** 237,243 ****
  49. --- 252,262 ----
  50.   #endif    /* Cray.  */
  51.       "GET", SCCS_GET,
  52.       "LD", "ld",
  53. + #ifdef GCC_IS_NATIVE
  54. +     "LEX", "flex",
  55. + #else
  56.       "LEX", "lex",
  57. + #endif
  58.       "LINT", "lint",
  59.       "M2C", "m2c",
  60.   #ifdef    pyr
  61. ***************
  62. *** 250,256 ****
  63.       "PC", "pc",
  64.   #endif    /* CRAY.  */
  65.   #endif    /* pyr.  */
  66. !     "YACC", "yacc",    /* Or "bison -y"  */
  67.       "MAKEINFO", "makeinfo",
  68.       "TEX", "tex",
  69.       "TEXI2DVI", "texi2dvi",
  70. --- 269,279 ----
  71.       "PC", "pc",
  72.   #endif    /* CRAY.  */
  73.   #endif    /* pyr.  */
  74. ! #ifdef GCC_IS_NATIVE
  75. !     "YACC", "bison -y",
  76. ! #else
  77. !     "YACC", "yacc",
  78. ! #endif
  79.       "MAKEINFO", "makeinfo",
  80.       "TEX", "tex",
  81.       "TEXI2DVI", "texi2dvi",
  82.